<extend name="Public/base" />
<block name="body">
    <div class="main-title">
        <h2>新增节点</h2>
    </div>
	<form action="{:U('System/addNode')}" method="post" class="form-horizontal">
		<div class="form-item">
            <label class="item-label">节点名<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$_list.name}">
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点中文名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$_list.title}">
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点状态<span class="check-tips"></span></label>
            <div class="controls">
                <input type="radio" class=" radio" name="status" <eq name="_list['status']" value="1">checked</eq> value="1">显示
				<input type="radio" class=" radio" name="status" <eq name="_list['status']" value="0">checked</eq> value="0">不显示
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点功能描述<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="remark" value="{$_list.remark}">
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点排序<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="sort" value="{$_list.sort}">
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点上级id<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="pid" value="{$_list.pid}">
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点级数<span class="check-tips"></span></label>
            <div class="controls">
                <select name="level">
                	<option value='1' <eq name="_list['level']" value="1">selected</eq>>模块</option>
                	<option value='2' <eq name="_list['level']" value="2">selected</eq>>控制器</option>
                	<option value='3' <eq name="_list['level']" value="3">selected</eq>>方法</option>
                </select>
            </div>
        </div>
		<div class="form-item">
            <label class="item-label">节点顶部菜单<span class="check-tips"></span></label>
            <div class="controls">
                <select name="menu_id">
                	<volist name="menu" id="mo">
                	<option value='{$mo.id}' <eq name="_list['menu_id']" value="mo['id']">selected</eq>>{$mo.name}</option>
					</volist>
                </select>
            </div>
        </div>
		 <div class="form-item">
            <label class="item-label">是否显示菜单<span class="check-tips">是否显示菜单</span></label>
            <div class="controls">
               <input type="radio" class=" radio" name="is_menu" value="1" <eq name="_list['is_menu']" value="1">checked</eq>>显示
				<input type="radio" class=" radio" name="is_menu" value="0" <eq name="_list['is_menu']" value="0">checked</eq>>不显示
            </div>
        </div>
		 <div class="form-item">
            <label class="item-label">路径<span class="check-tips">链接 = 控制器/方法</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="path" value="{$_list['path']}">
            </div>
        </div>
        <div class="form-item">
        	<notempty name="nid"><input type="hidden" name="nid" value="{$nid}"/></notempty>
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('User/index')}');
    </script>
</block>
